/*
 *读取env环境变量
 */
const SERVER_ID = process.env.NODE_ENV === 'production' ? 0 : 1

/*
 *定义多个服务器账号 及 根据 SERVER_ID 导出当前环境服务器账号
 */
const SERVER_LIST = [
  {
    id: 0,
    name: 'A-生产环境',
    domain: 'http://yixinzao.121.soft1024.com',
    host: '39.98.162.236',
    port: 22,
    username: 'root',
    password: 'Xxinshanglu123...',
    indexpath: '/www/wwwroot/yixinzaoh5.121.soft1024.com/',
    assetspath: '/www/wwwroot/yixinzaoh5.121.soft1024.com/h5',
  },
  {
    id: 1,
    name: 'B-测试环境',
    domain: 'http://yixinzao.121.soft1024.com',
    host: '121.40.48.158',
    port: 22,
    username: 'root',
    password: '123.123.',
    indexpath: '/www/wwwroot/yixinzaoh5.121.soft1024.com/',
    assetspath: '/www/wwwroot/yixinzaoh5.121.soft1024.com/h5',
  },
]

module.exports = SERVER_LIST[SERVER_ID]
